package indi.woniu.entity;


import lombok.AllArgsConstructor;
import lombok.Data;
import lombok.NoArgsConstructor;
import org.springframework.stereotype.Component;

/**
 * 对外统一的出口进行封装
 *
 * @author yangliang
 * @since 2021-12-14 13:23
 */
@Component
@Data
@AllArgsConstructor
@NoArgsConstructor
public class ResponseEntity<T> {
    /**
     * 状态码
     */
    private Integer code;

    /**
     * 提示消息
     */
    private String message;

    /**
     * 具体返回的数据
     */
    private T data;
}